﻿<%@ page language="C#" autoeventwireup="true" inherits="Default2, App_Web_6xili9eb" %>

<%@ Register assembly="OrgChart" namespace="OrgChart.Core" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Detailed Geneology</title>   
    <style type="text/css">
        #div
        {
            height: 300px;
        }
    </style>
</head>
<body>
<script type="text/javascript" language="javascript">
function CallPrint(strid)
{
 var prtContent = document.getElementById(strid);
 var WinPrint = window.open('','','letf=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
 WinPrint.document.write(prtContent.innerHTML);
 WinPrint.document.close();
 WinPrint.focus();
 WinPrint.print();
 //WinPrint.close();
 prtContent.innerHTML=strOldOne;
 alert('done');
}
</script>
<form id="form1" runat="server">
<asp:Button ID="Button1" runat="server" BackColor="#99CCFF" BorderWidth="0px" 
    Font-Bold="True" Font-Size="Medium" OnClientClick="CallPrint('div')" 
    Text="Print" />

    <div id="div">
        
        <br />
        
        <br />
        
<cc1:XmlBoundOrganisationChart ID="XmlBoundOrganisationChart2" runat="server" 
            ChartItemToolTip="" DataSourceID="XmlDataSource1" LineColour="Blue" 
            ParentField="ManagerId" PrimaryKey="UniqueId">
    <ChartItem Colour="Brown" Size="Small" BorderStyle="Oval"></ChartItem>

    <SummaryItem Colour="Brown" Size="Small" BorderStyle="Oval"></SummaryItem>

    <StackItem Colour="Brown" Size="Small" BorderStyle="Oval" ShowBackgroundImage="False"></StackItem>

    <NavigationBarSettings Visible="False" ShowSelectButton="False" ShowHidePeersButton="True" ShowNavigationButtons="True"></NavigationBarSettings>

    <CommandBarSettings ShowStack="False" Title="Organisation Chart Commands" LevelLabelText="Levels" SummaryLabelText="Summary" StackLabelText="Stack"></CommandBarSettings>

    <EditItem Colour="Brown" Size="Small" BorderStyle="Oval"></EditItem>

    <AssistantItem AssistantHeight="0" Colour="Brown" Size="Small" BorderStyle="Oval"></AssistantItem>
</cc1:XmlBoundOrganisationChart>
        <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/personal_geneology.xml">
        </asp:XmlDataSource>
       <br />
    </div>
    </form>
    
</body>
</html>
